<!DOCTYPE HTML>
<html>
	<head>
		<title></title>
		<meta charset="utf-8" />
	</head>
	<body>
		<center>
			<h3>讲师信息管理</h3>
			@include('user.menu')
			<form action="/user/{{ $data->id }}" method="post">
				{{ csrf_field() }}
				{{ method_field('PUT') }}
				<table border="1">
					<tr>
						<td>姓名</td>
						<td><input type="text" name="name" value="{{ $data->name }}" /></td>
					</tr>
					<tr>
						<td>密码</td>
						<td><input type="text" name="password" value="{{ $data->password }}" /></td>
					</tr>
					<tr>
						<td>性别</td>
						<td>
							<input type="radio" name="sex" value="1" @if($data->sex == 1 )checked @endif />男
							<input type="radio" name="sex" value="1" @if($data->sex == 2 )checked @endif />女
						</td>
					</tr>
					<tr>
						<td>年龄</td>
						<td><input type="text" name="age" value="{{ $data->age }}" /></td>
					</tr>
					<tr>
						<td colspan="2" align="center"><input type="submit" value="提交" /></td>
					</tr>
				</table>
			</form>		
		</center>
	</body>
</html>